//validating empty fields
function check_empty () {
	// body...
	if (document.getElementById('name').value == "" || document.getElementById('email').value == "" ||
	 document.getElementById('msg').value == "") {

		var obj = document.getElementById("name");
		var str = obj.value;
		if(str.length<=0){
			obj.style.backgroundColor ="green";
			
		}else{
			obj.style.backgroundColor ="red";
		}

		// alert("Fill all fields!");
	}else{
		document.getElementById('form').submit();
		alert("Form submitted successfully...");
	}
}

//function to display popup
function div_show(){
	document.getElementById('abc').style.display = "block";
}

//function to hide popup
function div_hide(){
	document.getElementById('abc').style.display = "none";
}
